package com.syeet.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * {
 * "catalog1Id": "1",
 * "catalog3List": [
 * {
 * "catalog2Id": "1",
 * "id": "1",
 * "name": "电子书"
 * },
 * {
 * "catalog2Id": "1",
 * "id": "2",
 * "name": "网络原创"
 * },
 * {
 * "catalog2Id": "1",
 * "id": "3",
 * "name": "数字杂志"
 * },
 * {
 * "catalog2Id": "1",
 * "id": "4",
 * "name": "多媒体图书"
 * }
 * ],
 * "id": "1",
 * "name": "电子书刊"
 * },
 * 二级分类vo
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Catelog2Vo implements Serializable {

    private String catalog1Id;//父分类id，即1级分类的id
    private List<Catelog3Vo> catalog3List;//子分类
    private String id;
    private String name;

    //三级分类vo
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class Catelog3Vo {
        private String catalog2Id;//父分类id，即2级分类的id
        private String id;
        private String name;
    }
}
